#include <iostream>

class BaseClass
{
public:
    int age{10};

    void showAge()
    {
        std::cout << "父类中的showAge 函数调用了， age = " << age << std::endl;
    }
};

class SubClass : public BaseClass
{
public:
    int age{100};
    void showAge()
    {
        std::cout << "子类的showAge 函数调用了， age = " << age << std::endl;
    }
};

class SubSubClass : public SubClass 
{};

int main(int argc, char const *argv[])
{
    
    SubSubClass sub{};
    sub.SubClass::showAge();

    return 0;
}
